cmake_minimum_required(VERSION 3.27)
project(mpvTest)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(PkgConfig REQUIRED)
find_package(Qt6 COMPONENTS
        Core
        Gui
        Widgets
        OpenGLWidgets
        REQUIRED)
pkg_check_modules(mpv IMPORTED_TARGET mpv)
add_executable(mpvTest
        mpvopenglwidget.cc
        mpvplayer.cc
        previewwidget.cc
        main.cc
        mpvwidget.hpp
        mpvwidget.cc
        mainqwidget.cpp
        kkqdialog.cpp
)
target_link_libraries(mpvTest
        Qt6::Core
        Qt6::Gui
        Qt6::Widgets
        Qt6::OpenGLWidgets
        PkgConfig::mpv

)

